﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PPM.Blog.Domain.Core
{
    [Table("T_Blog",Schema ="dbo")]
    public class Blog
    {
        public Blog()
        {
            this.Posts = new HashSet<Post>();
        }
        [Key]
        public int Id { get; set; }


        [MaxLength(20)]
        public string Title { get; set; }


        public virtual ICollection<Post> Posts{ get; set; }
}
}
